home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
t_sys5
/
92052tar.gz
/
920528.tar
/
mail.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-04
|
1KB
|
58 lines
/* @(#) $Header: mail.h,v 1.10 91/06/04 11:34:19 deyke Exp $ */
#ifndef _MAIL_H
#define _MAIL_H
#include "global.h"
#define CONFFILE "/tcp/mail.conf"
#define SPOOLDIR "/usr/spool/uucp"
#define RETRYTIME (60L*60)
#define RETURNTIME (60L*60*24*3)
#define MAXJOBS 10
struct mailers;
struct mailsys {
char *sysname;
struct mailers *mailer;
char *protocol, *address;
int state;
#define MS_NEVER 0 /* Inactive states */
#define MS_SUCCESS 1
#define MS_FAILURE 2
#define MS_TRYING 3 /* Active states */
#define MS_TALKING 4
long nexttime;
struct mailjob *jobs;
struct mailsys *next;
};
struct mailers {
char *name;
void (*func) __ARGS((struct mailsys *sp));
};
struct mailjob {
char to[1024], from[1024], subject[1024];
char dfile[80], cfile[80], xfile[80];
char return_reason[1024];
struct mailjob *next;
};
/* In mail_bbs.c: */
void mail_bbs __ARGS((struct mailsys *sp));
/* In mail_retrn.c: */
void mail_return __ARGS((struct mailjob *jp));
/* In mail_smtp.c: */
void mail_smtp __ARGS((struct mailsys *sp));
/* In mail_subr.c: */
char *get_user_from_path __ARGS((char *path));
char *get_host_from_path __ARGS((char *path));
void mailer_failed __ARGS((struct mailsys *sp));
#endif /* _MAIL_H */